<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<jsp:useBean id="beans" class="WorldCup2010.DAO.Team"/>
<jsp:useBean id="InfoTeam" class="WorldCup2010.VO.InfoTeam"/> 
<%@ page import ="java.text.*,java.util.*" %> 
<%@ page import="java.sql.*"%> 
<%@page import="WorldCup2010.VO.InfoTeam"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Match Result</title>

<style type="text/css">
BODY, TABLE, TR, TD, DIV, SELECT, INPUT
{ font-family: "tahoma"; font-size: 12px; color: #333333; }

</style>

</head>

<body topmargin="0" leftmargin="0">
<form name = "listForm">
<table width="864" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><table width="824" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="440" height="50" align="left"><img src="images/Team_Inform.jpg" width="220" height="37"></td>
        <td colspan="3" align="right" valign="bottom"><strong>HOME &gt; Team Information</strong></td>
      </tr>
      <tr>
        <td height="5" colspan="4" background="images/line.gif"></td>
      </tr>
      <tr>
        <td height="5" colspan="4"></td>
      </tr>
      <tr>
        <td colspan="4" align="left"><p>Group
        <select name="GroupCombo" id="GroupCombo">
            <option value = "1">A</option>
            <option value = "2">B</option>
			<option value = "3">C</option>
			<option value = "4">D</option>
			<option value = "5">E</option>
			<option value = "6">F</option>
			<option value = "7">G</option>
			<option value = "8">H</option>
          </select>
         <input type="submit" value="선택"> 
          </p></td>
      </tr>
      <tr>
        <td colspan="4" height="7"></td>
      </tr>
      <tr>
        <td colspan="4" height="1" background="images/dotline_width.gif"></td>
      </tr>
      <tr>
        <td width="1" height="20"></td>
      </tr>
      
      <table width="75%" align="center" border> 
	  <br>
	  <tr>	
	  		<th>순위</th>
	  		<th>국가명</th>
	  		<th>승</th>
	  		<th>무</th>
      		<th>패</th>
      		<th>승점</th>
      </tr>
<%
	String team = request.getParameter("team");
	InfoTeam teamInformation = null;
	teamInformation = beans.getTeam();
	ArrayList<InfoTeam> TeamList = null;
	ArrayList<InfoTeam> GetPoint = null;
	GetPoint = beans.getPoint();
	TeamList = beans.getAllTeams("E");
%>

<%
	int no = 1;
	for(int i=0;i<GetPoint.size();i++)
	{
%>
      <tr>
      		<td align="center"><%=no++%></td> 
  			<td align="center">남아프리카</td>
  			<td align="center"><%= GetPoint.get(i).getGetwin()%></td>
  			<td align="center"><%= GetPoint.get(i).getGetdraw()%></td>
  			<td align="center"><%= GetPoint.get(i).getGetlose()%></td>
  			<td align="center"><%= GetPoint.get(i).getGetpoint()%></td>
	  </tr>
	<% 
	}
	%>
      
      </table>
        
      <br>
      <tr>
        <td colspan="4" height="1" background="images/dotline_width.gif"></td>
      </tr>
      <tr>
        <td height="10" colspan="4"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>

</html>
